<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>商品管理 - 商品列表</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 商品列表 </h3>
        <ul class="page-breadcrumb breadcrumb">
         <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 商品管理 <i class="icon-angle-right"></i> </li>
          <li>商品列表</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->     
    <div class="row">
      <div class="col-md-12">
        <div class="portlet box">
          <div class="booking-search">
            <form action="" role="form" method="get">
              <div class="row form-group">
                <div class="col-md-2">
                  <div class="input-cont">
                    <input class="form-control" name="keyword" placeholder="商品名称/条码/ID" value="<?=$_GET['keyword'];?>" type="text">
                  </div>
                </div>

                
                <div class="col-md-2">
                  <select class="form-control" name="caid" id="caid">
                    <option value="">商品分类</option>
                      <?php
                      if($this->cate){
                          foreach($this->cate[0] as $k=> $r){
                              if(isset($this->data['para']['caid']) && $k==$this->data['para']['caid']) $slk = ' selected';
                              else $slk = '';

                                $newcate[$r['caid']] = $r['name'];
                              ?>
                              <option value="<?=$r['caid'];?>"<?=$slk;?>><?=$r['name'];?></option>
                              <?php
                              if($this->cate[$r['caid']]){
                                  foreach($this->cate[$r['caid']] as $j=>$s){
                                      if(isset($this->data['para']['caid']) && $j==$this->data['para']['caid']) $slk = ' selected';
                                      else $slk = '';

                                        $newcate[$s['caid']] = $s['name'];
                                      ?>
                                      <option value="<?=$s['caid'];?>"<?=$slk;?>>&nbsp;&nbsp;&nbsp;&nbsp;<?=$s['name'];?></option>
                                      <?
                                  }
                              }?>
                              <?
                          }
                      }
                      ?>

                  </select>
                </div>

                <div class="col-md-2">
                  <select class="form-control" name="goods_type" id="goods_type">
                      <option value="">商品类型</option>
                      <?php
                            if($this->c['goods_type']){
                              foreach($this->c['goods_type'] as $py => $bd){
                                
                                  if(isset($this->data['para']['goods_type']) && $py==$this->data['para']['goods_type']) $slk = ' selected';
                                  else $slk='';
                                  
                                  echo '<option value="'.$py.'"'.$slk.'>'.$bd.'</option>';                                                          
                              }
                            }             
                            ?> 

                  </select>
              </div>
     
              <div class="col-md-2">
                  <select class="form-control" name="supplier_id" id="supplier_id">
                      <option value="">供应商</option>
                      <?php
                      if($this->supplier){
                          foreach($this->supplier as $k=> $r){
                              if(isset($this->data['para']['supplier_id']) && $r['id']==$this->data['para']['supplier_id']) $slk = ' selected';
                              else $slk = '';
                              $newsupplier[$r['id']] = $r['supplier'];
                              ?>
                              <option value="<?=$r['id'];?>"<?=$slk;?>><?=$r['supplier'];?></option>
                              <?
                          }
                      }
                      ?>
                  </select>
              </div>
            
                
                <div class="col-md-2">
                  <select class="form-control" name="is_on_sale">
                    <option value="">上下架</option>
                    <option value="1"<? if($this->data['para']['is_on_sale']==1) echo ' selected';?>>上架</option>
                    <option value="0"<? if( isset($this->data['para']['is_on_sale']) && $this->data['para']['is_on_sale']==0) echo ' selected';?>>下架</option>
                  </select>
                </div>
               
                <div class="col-md-1">
                  <input type="submit" class="btn blue btn-block" value="搜 索">
                </div>
                 <div class="col-md-1">
                  <input type="button" onclick="javascript:window.location.href='/channel/add'" class="btn green btn-block" value="添 加">
                </div>
                
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN SAMPLE TABLE PORTLET-->
        <div class="portlet box blue">
          <div class="portlet-title">
            <div class="caption"><i class="icon-list"></i>列表(<?=$this->data['count'];?>)</div>
            <div class="actions">
              <div class="btn-group"> <a class="btn red" href="#" data-toggle="dropdown"> <i class="icon-cog"></i> 批量操作 <i class="icon-angle-down"></i> </a>
                <ul class="dropdown-menu pull-right">
                  <?php if($this->pv['onsale']):?>
                  <li><a href="javascript:_batch('on_sale');"><i class="i"></i> 上架</a></li>
                  <?php endif;?>
                  <li><a href="javascript:_batch('off_sale');"><i class="i"></i> 下架</a></li>
                  <li><a href="javascript:_cate();"><i class="i"></i>修改商品分类</a></li>
                  <li><a href="javascript:_batch('delete');"><i class="i"></i> 删除</a></li>
                  <li class="divider"></li>
                 </ul>
              </div>
            </div>
          </div>
          <div class="portlet-body">
            <div class="table-scrollable">
             <table class="table table-striped table-bordered table-hover dataTable">
                <thead>
                  <tr>                    
                    <th><input type="checkbox" id="_checkboxall" value="1"></th>
                    <th>商品ID</th>
                    <th>名称</th>
                    <th>分类</th>
                    <th>类型</th>
                    <th>封面</th>
                    <th>销售量</th>
                    <th>硒米价格</th>
                    <th>零售价</th>
                    <th>市场价</th>

                    <?php if($this->pv['purview']):?>
                    <th>进货价</th>
                    <?php endif;?>

                    <th>库存</th>
                    <th>上架</th>
                    <th>免运费</th>
                    <th>升级商品</th>
                    <th>操作</th>             
                  </tr>
                </thead>
                <tbody>
                  <?php if($this->data['data']){
            				foreach($this->data['data'] as $k=> $r){		
						      ?>
                  <tr>                    
                    <td><input type="checkbox" class="_checkboxs" name="goods_id[]" value="<?=$r['goods_id'];?>"></td>
                   <td><?=$r['goods_id'];?></td>
                    <td><?=$r['goods_name'];?></td>
                    <td><?=$newcate[$r['caid']];?></td>                 
                    <td><?=$this->c['goods_type'][$r['goods_type']];?></td>
                    <td>
                    <?php if ($r['thumb_docid'] > 0): ?>
                        <img src="<?=$this->data['docs'][$r['thumb_docid']]?>" width="60"/>
                    <?php else: ?>
                        <img src="<?=$this->data['docs'][$r['pic_docid']]?>" width="60" />
                    <?php endif;?>
                    </td>
                     <td><input type="text" class="_sales_count" name="sales_count" value="<?=$r['sales_count'];?>" data-val="<?=$r['sales_count'];?>" style="width:50px;" data-id="<?=$r['goods_id']?>"></td>
                    <td><?=$r['ximi_price'];?></td>
                    <td><input type="text" class="_shop_price" name="shop_price" value="<?=$r['shop_price'];?>" data-val="<?=$r['shop_price'];?>" style="width:50px;" data-id="<?=$r['goods_id']?>"></td>
                    <td><input type="text" class="_market_price" name="market_price" value="<?=$r['market_price'];?>" data-val="<?=$r['market_price'];?>" style="width:50px;" data-id="<?=$r['goods_id']?>"></td>

                    <?php if($this->pv['purview']):?>
                    <td><?=$r['purchase_price'];?></td>
                    <?php endif;?>

                    <td><input type="text" class="_goods_number" name="goods_number" value="<?=$r['goods_number'];?>" data-val="<?=$r['goods_number'];?>" style="width:50px;" data-id="<?=$r['goods_id']?>"></td>
                    <td><a href="javascript:;" class="_is_on_sale" data-id="<?=$r['goods_id']?>" data-val="<?=$r['is_on_sale']?>"><?=$this->c['stat']['yesno'][$r['is_on_sale']];?></a></td>                    
                    <td><?=$r['is_free_shipping']>0 ? $this->c['stat']['yesno'][1] : $this->c['stat']['yesno'][0];?></td>
                    <td><?=$this->c['stat']['yesno'][$r['upgrade_goods']];?></td>
                    <td>
                    <a href="add?goods_id=<?=$r['goods_id']?>" data-toggle="modal"  class="btn btn-xs blue"><i class="icon-plus"></i>复制</a>
                    <?                  
                    if($this->pv['edit'])
                    {

                     echo ' <a href="edit?goods_id='.$r['goods_id'].'" class="btn btn-xs blue"><i class="icon-edit"></i> 编辑</a>';

                     echo ' <a href="commission?goods_id='.$r['goods_id'].'" class="btn btn-xs blue"><i class="icon-indent-right"></i> 分润设置</a>';
                    }
                    if($this->pv['stock']) echo ' <a href="stock_number?goods_id='.$r['goods_id'].'"  class="btn btn-xs blue"><i class="icon-inbox"></i> 库存</a>';
                    if($this->pv['damaged']) echo ' <a href="stock_damaged?goods_id='.$r['goods_id'].'"  class="btn btn-xs blue"><i class="icon-wrench"></i> 报损</a>';
                    // if($this->pv['chart']) echo ' <a href="chart?goods_id='.$r['goods_id'].'"  class="btn btn-xs blue"><i class="icon-bar-chart"></i> 走势</a>';
                    if($this->pv['relevance']) echo ' <a href="javascript:_setRelevance('.$r['goods_id'].');"  class="btn btn-xs blue"><i class="icon-random"></i> 关联</a>';
                    if($this->pv['spec']) echo ' <a href="goods_spec_set?goods_id='.$r['goods_id'].'&cate_id='.$r['caid'].'"  class="btn btn-xs blue"><i class="icon-inbox"></i>规格设置</a> <a href="goods_spec_pic?cate_id='.$r['caid'].'&goods_id='.$r['goods_id'].'"  class="btn btn-xs blue"><i class="icon-picture"></i>规格图片设置</a>';
                    ?>
                    </td>
                    </tr> <?
          					}
          				}
          				?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
        <?php
    		if($this->data['maxpage'] > 1){
    		?>
            <div>
              <ul class="pagination">
                <?
    			$pquery="?";		
    			if($this->data['para']){			
    				foreach($this->data['para'] as $k=>$r){				
    					$pquery.=$k."=".$r."&";
    					$form_hidden .= '<input type="hidden" name="'.$k.'" value="'.$r.'">';
    				}			
    			}
    			
    			if($this->data['page'] > 1) echo '<li><a href="'.$pquery.'page='.($this->data['page']-1).'"><i class="icon-angle-left"></i></a></li>';
    			for($i = $this->data['spage']['ps']; $i<=$this->data['spage']['pe']; $i++){
    			if($i == $this->data['page']) echo '<li class="disabled"><a href="javascript:void(0);">'.$i.'</a></li>';
    			else echo '<li><a href="'.$pquery.'page='.$i.'">'.$i.'</a></li>';
    			}
    			
    			if($this->data['page'] < $this->data['maxpage']) echo '<li><a href="'.$pquery.'page='.($this->data['page']+1).'"><i class="icon-angle-right"></i></a></li>';
    			?>
          </ul>
          <div class="jumppage">
          <form method="get" action="">
          <?=$form_hidden;?>
          页码：<?=$this->data['page'];?>/<?=$this->data['maxpage'];?>
          跳到 <input type="text" name="page" class="value"> 页          
          <input type="submit" value="GO" class="sub">
          </form>
          </div>
        </div>
        <?
 		}
?>
        <!-- END SAMPLE TABLE PORTLET--> 
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<form method="post" id="_frm" action="/channel/savegoods">
  <input type="hidden" name="act" value="channeldelete">
  <input type="hidden" name="dataid" id="_dataid" value="0">
</form>
<form method="post" id="_batch" action="/channel/savebatch">
  <input type="hidden" name="act" id="_batch_act" value="channeledit">
  <input type="hidden" name="dataid" id="_batch_dataid" value="">
</form>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>

<!-- 关联相关 -->
<div id="poprelevance" style="position: fixed; display: none; width: 50%; height: 50%; top: 25%; left: 25%; background: #fff; border:2px solid #ccc; overflow-y: auto; overflow-x: hidden;">
  
<div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <form class="form-horizontal" method="post" onSubmit="return false;" role="form">          
          <div class="tabbable tabbable-custom boxless">           
            <div class="tab-content"> 
              <!--Tab0-->
              <div class="tab-pane active" id="tab_0">
                <div class="portlet box blue ">                  
                  <div class="portlet-body form">
                    <div class="form-body">
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品ID</label>
                        <div class="col-md-9">
                          <h5 id="goods_id"></h5>
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品名称</label>
                        <div class="col-md-9">
                          <h5 id="goods_name"></h5>
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">关联小标题<span class="required">*</span></label>
                        <div class="col-md-9">
                          <input type="text" id="rele_title" value="" maxlength="30" class="form-control"  placeholder="30个字符以内，例如：蓝色">
                        </div>
                      </div>
                      <hr>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">已关联</label>
                        <div class="col-md-9">
                          <h5 id="al_rele"></h5>
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">搜索关联</label>
                        <div class="col-md-9">
                          <input type="text" value="" id="rele_keyword" maxlength="30" class="form-control"  placeholder="输入关联标题关键词，回车搜索">
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">选择关联</label>
                        <div class="col-md-9">
                          <select id="slk_relevance_id" class="form-control">
                            <option value="">选项关联标题</option>                                    
                          </select>
                        </div>
                      </div>        
                    </div>
                    <div class="form-actions fluid">
                      <div class="col-md-offset-2 col-md-9">
                        <button type="button" class="btn blue" onclick="_saveRelevance();">提交</button>
                        <button type="button" class="btn default" onclick="_cancelRelevance();">取消</button>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <!--End Tab--> 
            </div>
          </div>
        </form>
        <!-- END SAMPLE FORM PORTLET--> 
      </div>
    </div>


</div>

<script type="text/javascript">
jQuery(document).ready(function(e) {    
	App.init();
	jQuery('#_checkboxall').change(function () {
		var checked = jQuery(this).is(":checked");
		jQuery("._checkboxs").each(function () {
			if (checked) {
				$(this).attr("checked", true);
			} else {
				$(this).attr("checked", false);
			}
			$(this).parents('tr').toggleClass("active");
		});
		jQuery.uniform.update("._checkboxs");
	});
	
	$("._checkboxs").change(function() {
        var checked = jQuery(this).is(":checked");
		if (!checked) {			
			$(this).attr("checked", false);
			$(this).parents('tr').removeClass("active");
			$("#_checkboxall").attr("checked",false);
			jQuery.uniform.update("#_checkboxall");
		}
    });
	$(".submit_btn").bind("click",function(){
	 	switch(_submit_action){
			case "delete":
				_delete_action();
			break;	
		}
	});

  $("#rele_keyword").on("keydown",function(e){
    if(e.which ==13)
    {

      $.post("ajax",
      {
        "act":"searchrelevance",
        "info":$(this).prop("value"),
        "mr":Math.random()
      },function(json){

        $("#slk_relevance_id").empty();

        if(json.length >0)
        {
          $("#slk_relevance_id").append('<option value="">找到'+json.length+'条可选择关联</option>').append('<option value="CANCEL">选中此项取消商品的关联</option>');
          $.each(json,function(i,v){
            $("#slk_relevance_id").append('<option value="'+v.id+'">['+v.id+'] '+v.title+'</option>');
          })
        }
        else
        {
          $("#slk_relevance_id").append('<option value="">没有搜索到相关数据</option>');
        }
        
      },"json")
    }
  })
});

var _submit_action = '',_dataid = 0;
function _delete_alert(dataid){
	_submit_action = 'delete';
	_dataid = dataid;
	$("#portlet-config .modal-title").html('删除商品');
	$("#portlet-config .modal-body").html('<p>确定删除此商品吗？</p> <p class="alert alert-danger">警告：删除后不可恢复</p>');	
}

function _export_action(){
  $("#_dataid").prop("value",_dataid);
  $("#_frm").submit();
}

function _delete_action(){
	$("#_dataid").prop("value",_dataid);
	$("#_frm").submit();
}

function _batch(act){
	var _ids = '';
	$("._checkboxs").each(function () {
		if( $(this).attr("checked")  ) {
			if(_ids!="") _ids +=',';
			_ids += $(this).val();
		}
	});
	if(_ids!=""){
		$("#_batch_act").prop("value",act);
		$("#_batch_dataid").prop("value",_ids);
		var _str = '';
		switch(act){
			case "on_sale":
			_str = '确定将选中商品设为上架吗？';
			break;
			case "off_sale":
			_str = '确定将选中商品设为下架吗？';
			break;
			case "delete":
			_str = '确定删除选中的商品吗？';
			break;
			case "is_best":
			_str = '确定将选中商品设为精品吗？';
			break;	
			case "is_hot":
			_str = '确定将选中商品设为热销吗？';
			break;	
			case "is_new":
			_str = '确定将选中商品设为新品吗？';
			break;	
		}
		cm = confirm(_str);
		if(cm){
				$("#_batch").submit();
		}
	}
	else alert("至少选择一款产品");
}

function _cate(){
	var _ids = '';
	
	$("._checkboxs").each(function () {
		if( $(this).attr("checked")  ) {
			if(_ids!="") _ids +=',';
			_ids += $(this).val();
		}
	});
	if(_ids!=""){
	  location.href="savegoodscate?goods_ids="+_ids;
		
	}
	else alert("至少选择一个商品");
}

$("._sales_count").blur(function(){
     var count = $(this).attr('data-val');
	var goods_id = $(this).attr('data-id');
	var sales_count = $(this).val();
	if(count != sales_count){
         $.ajax({type:'POST',url:"ajax",dataType:'json',data:{"goods_id":goods_id,"act":"ajax_sales_count","sales_count":sales_count}, success: function(data) {
              if(data.code==200){
            	  swal(data.msg,false,"success");
              }else{
            	 
            	  swal(data.msg,false,"error");
              }    
    		} 
    	
     })
	}	
});
//修改库存
$("._goods_number").blur(function(){
    var number = $(this).attr('data-val');
	var goods_id = $(this).attr('data-id');
	var goods_number = $(this).val();
	if(number != goods_number){
        $.ajax({type:'POST',url:"ajax",dataType:'json',data:{"goods_id":goods_id,"act":"ajax_goods_number","goods_number":goods_number}, success: function(data) {
            if(data==200){
           	  swal("修改成功",false,"success");
           	  
             }else{
           	 
           	  swal('修改失败',false,"error");
             }    
   		} 
   	
    })
	}	
});

//修改上下架
$("._is_on_sale").click(function(){
    var is_on_sale = $(this).attr('data-val');
	var goods_id = $(this).attr('data-id');
	var v= $(this);
         $.ajax({type:'POST',url:"ajax",dataType:'json',data:{"goods_id":goods_id,"act":"ajax_is_on_sale","is_on_sale":is_on_sale}, success: function(data) {
            if(data.code==200){
           	 v.attr('data-val',data.is_on_sale);
                if(data.is_on_sale){
                   
                	v.html('<span class="label label-success">是</span>');
                   }else{
                	  v.html('<span class="label label-danger">否</span>');
                    }
           	  swal(data.msg,false,"success");
           	  
             }else{
           	 
           	  swal(data.msg+"["+data.code+"]",false,"error");
             }    
   		} 
   	
    }) 
		
});

//修改零售价
$("._shop_price").blur(function(){
    var price = parseFloat($(this).attr('data-val'));
   
	var goods_id = $(this).attr('data-id');
	var shop_price = $(this).val();
 	if(price != shop_price){
        $.ajax({type:'POST',url:"ajax",dataType:'json',data:{"goods_id":goods_id,"act":"ajax_shop_price","shop_price":shop_price}, success: function(data) {
            if(data.code==200){
           	  swal(data.msg,false,"success");
           	  
             }else{
           	 
           	  swal(data.msg+"["+data.code+"]",false,"error");
             }    
   		} 
   	
    })
	}	
});

//修改市场价
$("._market_price").blur(function(){
    var mprice = parseFloat($(this).attr('data-val'));
    alert(mprice)
	var goods_id = $(this).attr('data-id');
	var market_price = $(this).val();
 	if(mprice != market_price){
        $.ajax({type:'POST',url:"ajax",dataType:'json',data:{"goods_id":goods_id,"act":"ajax_market_price","market_price":market_price}, success: function(data) {
            if(data.code==200){
           	  swal(data.msg,false,"success");
           	  
             }else{
           	 
           	  swal(data.msg+"["+data.code+"]",false,"error");
             }    
   		} 
   	
    })
	}	
});
var _g_goods_id = 0;
function _setRelevance(goods_id)
{
  $.post("ajax",
  {
    "act":"getrelevance",
    "goods_id":goods_id,
    "mr":Math.random()
  },
  function(json){
    console.log(json);

    if(json.code==200)
    {
      _g_goods_id = json.data.goods_id;
      $("#poprelevance").css("display","block");
      $("#poprelevance #goods_id").html(json.data.goods_id);
      $("#poprelevance #goods_name").html(json.data.goods_name);
      $("#poprelevance #rele_title").prop("value",json.data.rele_title);

      if( json.data.relevance_id>0 && json.data.relevance_title!=null)
      {
        $("#poprelevance #al_rele").html('['+json.data.relevance_id+'] '+json.data.relevance_title);
      }

    }

  },"json");
}

function _cancelRelevance()
{
    $("#poprelevance").css("display","none");
    $("#poprelevance #goods_id").html('');
    $("#poprelevance #goods_name").html('');
    $("#poprelevance #rele_title").prop("value","");
    $("#poprelevance #al_rele").html('');
}

function _saveRelevance()
{
  if(_g_goods_id>0)
  {
    var _do = true;
    if( $("#rele_title").prop("value") == "")
    {
      swal("请填写关联小标题");
      _do = false;
    }


    if(_do)
    {
      $.post("ajax",
      {
        "act":"saverelevance",
        "goods_id":_g_goods_id,
        "rele_title":$("#poprelevance #rele_title").prop("value"),
        "slk_relevance_id":$("#poprelevance #slk_relevance_id").val(),
        "mr":Math.random()
      },
      function(json){
        if(json.code==200)
        {
          swal("保存成功",false,"success");
          _cancelRelevance();         

        }
        else{
          swal("保存失败","错误代码["+json.code+"]","error");
        }

      },"json");
    }
  }
}
</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>